//package com.qnbc.mystery.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//
//import com.qnbc.mystery.core.annotation.Log;
//import com.qnbc.mystery.core.controller.BaseController;
//import com.qnbc.mystery.core.domain.AjaxResult;
//import com.qnbc.mystery.core.enums.BusinessType;
//import com.qnbc.mystery.core.page.TableDataInfo;
//import com.qnbc.mystery.core.utils.poi.ExcelUtil;
//import com.qnbc.mystery.pojo.domain.AlfterSaleDispute;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.qnbc.mystery.service.IAlfterSaleDisputeService;
//
///**
// * 售后纠纷
// *
// * @author guzj
// * @date 2024-01-24
// */
//@RestController
//@RequestMapping("/mystery/dispute")
//public class AlfterSaleDisputeController extends BaseController {
//    @Autowired
//    private IAlfterSaleDisputeService alfterSaleDisputeService;
//
//    /**
//     * 查询售后纠纷列表
//     */
//    @GetMapping("/list")
//    public TableDataInfo list(AlfterSaleDispute alfterSaleDispute) {
//        startPage();
//        List<AlfterSaleDispute> list = alfterSaleDisputeService.selectAlfterSaleDisputeList(alfterSaleDispute);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出售后纠纷列表
//     */
//    @Log(title = "售后纠纷", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, AlfterSaleDispute alfterSaleDispute) {
//        List<AlfterSaleDispute> list = alfterSaleDisputeService.selectAlfterSaleDisputeList(alfterSaleDispute);
//        ExcelUtil<AlfterSaleDispute> util = new ExcelUtil<AlfterSaleDispute>(AlfterSaleDispute.class);
//        util.exportExcel(response, list, "售后纠纷数据");
//    }
//
//    /**
//     * 获取售后纠纷详细信息
//     */
//    @GetMapping(value = "/{alfterSaleId}")
//    public AjaxResult getInfo(@PathVariable("alfterSaleId") Long alfterSaleId) {
//        return AjaxResult.success(alfterSaleDisputeService.selectAlfterSaleDisputeByAlfterSaleId(alfterSaleId));
//    }
//
//    /**
//     * 新增售后纠纷
//     */
//    @Log(title = "售后纠纷", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody AlfterSaleDispute alfterSaleDispute) {
//        return toAjax(alfterSaleDisputeService.insertAlfterSaleDispute(alfterSaleDispute));
//    }
//
//    /**
//     * 修改售后纠纷
//     */
//    @Log(title = "售后纠纷", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody AlfterSaleDispute alfterSaleDispute) {
//        return toAjax(alfterSaleDisputeService.updateAlfterSaleDispute(alfterSaleDispute));
//    }
//
//    /**
//     * 删除售后纠纷
//     */
//    @Log(title = "售后纠纷", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{alfterSaleIds}")
//    public AjaxResult remove(@PathVariable Long[] alfterSaleIds) {
//        return toAjax(alfterSaleDisputeService.deleteAlfterSaleDisputeByAlfterSaleIds(alfterSaleIds));
//    }
//}
